package com.liaowei.gateway.openfeign;

import com.liaowei.common.BaseResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("auth-service")
public interface AuthClient {
    @GetMapping("auth/permissionNames/{userId}")
    BaseResponse<List<String>> permissionNameList(@PathVariable Long userId);

    @GetMapping("auth/roleNames/{userId}")
    BaseResponse<List<String>> roleNameList(@PathVariable Long userId);

}
